package com.yunji.base.dao;

import com.yunji.base.bo.ManagerUpdateBO;
import com.yunji.base.domain.ManagerDO;
import com.yunji.common.base.IBaseDao;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author : peter-zhu
 * @date : 2024/12/11 15:49
 * @description : TODO
 **/
public interface IManagerDao extends IBaseDao<ManagerDO> {
    ManagerDO getByUserId(Long userId);

    boolean deleteByUserId(List<Long> userIds);

    boolean deleteByAgentId(List<Long> list);

    List<ManagerDO> listByAgentIds(List<Long> list);

    boolean updateScaleByMangerId(Long managerId, BigDecimal scale);

    List<ManagerDO> listByUserIds(List<Long> userIds);

    boolean updateByManger(ManagerUpdateBO bo);

    boolean customPriceByManagerId(Long managerId, Integer customPrice);
}
